//
//  SendFlower.m
//  Tongcheng
//
//  Created by   丛熠超 on 2017/4/17.
//  Copyright © 2017年 Tongcheng. All rights reserved.
//

#import "SendFlower.h"

@implementation SendFlower
- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor clearColor];
    self.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight);
    UIGestureRecognizer *ges = [[UIGestureRecognizer alloc] initWithTarget:self action:@selector(destory)];
    [self.BackView addGestureRecognizer:ges];
}
- (IBAction)GetCharge:(UIButton *)sender {
    
    if ([_delegate respondsToSelector:@selector(GoCharege)]) {
        [_delegate GoCharege];
    }
}
- (IBAction)removeBtn:(id)sender {
    [self removeFromSuperview];
}
- (IBAction)CancleBtn:(UIButton *)sender {
    [self removeFromSuperview];
}

- (void)destory {
    [self removeFromSuperview];
}
+ (instancetype)gainMineHeaderView
{
    return [[NSBundle mainBundle] loadNibNamed:@"SendFlower" owner:self options:nil].lastObject;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
